﻿using System;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using Truextend.Training.Presenter.ViewInterfaces;
using System.Collections.Generic;
using Truextend.Training.Model.Entities;
using Truextend.Training.Presenter;
using Truextend.Training.Business.Dtos;

namespace Truextend.Training.CourseManageList
{
    public partial class CourseManageListUserControl : UserControl, IListCourseInstanceManageView
    {
        ListCourseInstanceManagePresenter presenter;

        protected void Page_Load(object sender, EventArgs e)
        {
            presenter = new ListCourseInstanceManagePresenter(this);
            presenter.InitView();
        }

        public string Message
        {
            set { lblMessage.Text = value;  }
        }

        public IList<CourseInstanceInstructorDto> CourseInstanceInstructorDtos
        {
            set
            {
                gvCourseInstances.DataSource = value;
                gvCourseInstances.DataBind();
            }
        }
    }
}
